package work.chenbo.springboot.security.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import work.chenbo.springboot.security.constant.LoginType;

import java.util.List;

/**
 * @author ChenBo
 * @className SecurityProperties
 * @date 2020/11/5
 */
@ConfigurationProperties(prefix = "spring.security")
@Data
public class SecurityProperties {
    private String loginPage = "/login";

    private LoginType loginType = LoginType.JSON;

    private ImageCode imageCode = new ImageCode();

    @Data
    public static class ImageCode{
        /**验证码宽度*/
        private int width = 67;
        /**高度*/
        private int height = 23;
        /**长度（几个数字）*/
        private int length = 4;
        /**过期时间*/
        private int timeout = 60;
        /**需要图形验证码的 url*/
        private List<String> urls;
    }


}
